package gtt

import "sync"

type tt struct {
	DataAllChan chan Data
	On          map[string]map[string]Bus
	mu          sync.RWMutex
}

// 总线
type Bus struct {
	Id   string
	Name string
	Call func(data Data) []byte
}

type Data struct {
	SendName    string
	SendId      string
	ReceiveName string
	ReceiveId   string
	Data        []byte
	Time        int64
}
